use super::UserPost;

#[derive(Debug)]
pub struct Collection {
    title: String,
    elements: Vec<UserPost>,
}
impl Collection {
    pub fn title(&self) -> String {
        self.title.clone()
    }
    pub fn elements(&self) -> Vec<UserPost> {
        self.elements.to_vec()
    }
    pub fn len(&self) -> usize {
        self.elements.len()
    }
}
